{% extends "layout.html" %}
{% block body %}
{% if session.logged_in %}
<form action="{{url_for('manage_modify')}}" method="post" class="modify-entry">
    {% for modify_blog in cur_blog %}
    <dl>
        <dt>Title</dt>
        <dd><input type="text" size="30" name="title" value={{modify_blog.title}}></dd>
        <dd hidden><input type="text", size="30" name="blog_id" value={{modify_blog.id}}></dd>
        <dt>Text:</dt>
        <dd><textarea name="text" rows="5" cols="40">{{modify_blog.text}}</textarea></dd>
        <dd><input type="submit" value="modify"></dd>
    </dl>
    {% endfor %}
</form>
{% endif%}
{% endblock body %}